package com.aaa.service;

import com.aaa.dao.MenuDao;
import com.aaa.dao.impl.MenuDaoImpl;
import com.aaa.entity.Pager;
import com.aaa.util.PageUtil;

import java.util.List;
import java.util.Map;

public class MenuServiceImpl implements MenuService {
    MenuDao dao=new MenuDaoImpl();
    @Override
    public Pager query(int curPage, int pageSize, Map condation) {
        pageSize= PageUtil.PAGE_SIZE;
        return dao.query(curPage, pageSize, condation);
    }

    @Override
    public List queryMenuByUserId(int userid) {
        return dao.queryMenuByUserId(userid);
    }
}
